package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级信息对象 sys_school_class
 * 
 * @author 杨皓焜
 * @date 2021-01-31
 */
public class SysSchoolClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级id */
    private Long id;

    /** 班级名 */
    @Excel(name = "班级名")
    private String className;

    /** 班主任姓名 */
    @Excel(name = "班主任姓名")
    private String masterName;

    private Long classId;

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    /** 开班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 学员信息信息 */
    private List<SysSchoolStudent> sysSchoolStudentList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setMasterName(String masterName) 
    {
        this.masterName = masterName;
    }

    public String getMasterName() 
    {
        return masterName;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    public List<SysSchoolStudent> getSysSchoolStudentList()
    {
        return sysSchoolStudentList;
    }

    public void setSysSchoolStudentList(List<SysSchoolStudent> sysSchoolStudentList)
    {
        this.sysSchoolStudentList = sysSchoolStudentList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("className", getClassName())
            .append("masterName", getMasterName())
            .append("createDate", getCreateDate())
            .append("sysSchoolStudentList", getSysSchoolStudentList())
            .toString();
    }
}
